package com.dcms.admin.controller;

import com.dcms.power.annotation.ArchivesLog;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * \* @name: IndexController
 * \* @author: 武佳伟丶
 * \* @date: 2018/2/10 0010
 * \* @tine: 19:48
 * \* @description: To change this template use File | Settings | File Templates.
 * \
 */
@Controller
public class IndexController extends BaseController{

    @RequestMapping("admin/index")
    public String toIndex(){
        return "admin/index";
    }

    /**
     * @author: 武佳伟丶 
     * @description: 跳转页面
     * @date: 17:00 2018/2/19 0019
     * @param: [path]
     * @return: java.lang.String
     */
    @RequestMapping("admin/path/{path}")
    public String jump(@PathVariable String path){
        return "admin/" + path;
    }

    @ArchivesLog(message = "访问页面")
    @RequestMapping("{admin}/{table}/list")
    public String jumpListPgae(
            @PathVariable String admin,
            @PathVariable String table
    ){
       return admin + "/" + table + "/list";
    }
}